/*
 * Notifica
 * 
 * The class Notifica represents a notification in the system 
 * 
 * Author: Carmine Colicino, Luigi Di Martino
 * Version: 1.0
 * 
 * 2014 - Copyright by Team 6 - University of Salerno
*/

package it.unisa.udocs.data;

import java.sql.Date;

public class Notifica {
	
	private int id_notifica;
	private Date data;
	private int id_mittente;
	private int id_destinatario;
	private int id_prodotto;
	private String stato;
	
	
	/**
	 * Constructs a new Notifica
	 * 
	 * @param id_notifica - the id of a notification
	 * @param data - the date of a notification
	 * @param id_mittente - the sender id
	 * @param id_destinatario - the receiver id
	 * @param id_prodotto - the product id
	 * @param stato - the state of a notification
	 */
	public Notifica(int id_notifica, Date data, int id_mittente, 
			int id_destinatario, int id_prodotto, String stato) {
		this.id_notifica = id_notifica;
		this.data = data;
		this.id_mittente = id_mittente;
		this.id_destinatario = id_destinatario;
		this.id_prodotto = id_prodotto;
		this.stato = stato;
	}

	/**
	 * Returns the id of a notification 
	 * 
	 * @return the id of a notification
	 *
	 */
	public int getId_notifica() {
		return id_notifica;
	}

	/**
	 * Sets the id of a notification 
	 * 
	 * @param id_notifica - the id of a notification
	 * 
	 */
	public void setId_notifica(int id_notifica) {
		this.id_notifica = id_notifica;
	}

	/**
	 * Returns the date of a notification 
	 * 
	 * @return the date of a notification
	 *
	 */
	public Date getData() {
		return data;
	}

	/**
	 * Sets the date of a notification 
	 * 
	 * @param data - the date of a notification
	 * 
	 */
	public void setData(Date data) {
		this.data = data;
	}

	/**
	 * Returns the sender id 
	 * 
	 * @return the sender id
	 *
	 */
	public int getId_mittente() {
		return id_mittente;
	}

	/**
	 * Sets the sender id 
	 * 
	 * @param id_mittente - the sender id
	 * 
	 */
	public void setId_mittente(int id_mittente) {
		this.id_mittente = id_mittente;
	}

	/**
	 * Returns the receiver id 
	 * 
	 * @return the receiver id
	 *
	 */
	public int getId_destinatario() {
		return id_destinatario;
	}

	/**
	 * Sets the receiver id 
	 * 
	 * @param id_destinatario - the receiver id
	 * 
	 */
	public void setId_destinatario(int id_destinatario) {
		this.id_destinatario = id_destinatario;
	}

	/**
	 * Returns the product id 
	 * 
	 * @return the product id
	 *
	 */
	public int getId_prodotto() {
		return id_prodotto;
	}

	/**
	 * Sets the product id 
	 * 
	 * @param id_prodotto - the product id
	 * 
	 */
	public void setId_prodotto(int id_prodotto) {
		this.id_prodotto = id_prodotto;
	}

	/**
	 * Returns the state of a notification 
	 * 
	 * @return the state of a notification 
	 *
	 */
	public String getStato() {
		return stato;
	}

	/**
	 * Sets the state of a notification 
	 * 
	 * @param stato - the state of a notification
	 * 
	 */
	public void setStato(String stato) {
		this.stato = stato;
	}

}
